package com.yunshang.shoppingmall.service;

import com.yunshang.shoppingmall.entity.Classify;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClassifyService {
    int deleteByPrimaryKey(Integer classId);

    int insert(Classify record);

    int insertSelective(Classify record);

    Classify selectByPrimaryKey(Integer classId);

    int updateByPrimaryKeySelective(Classify record);

    int updateByPrimaryKey(Classify record);
    int updateUpperRankId(@Param("classId") Integer classId, @Param("upperRankId") Integer upperRankId);
    List<Classify> selectList(int upperRankId);
    List<Classify> selectListAll();

    //查询一级分类
    List<Classify> selectYJClassify();

    //查询二级分类
    List<Classify> selectRJClassify(int classId);


    //查询三级分类
//    List<Classify> selectSJClassify(int classId);

    //查询所有的二级分类
    List<Classify> selectProductYJAndRjClassfy();

    //查询所有的三级分类
    List<Classify> selectProductSJClassfy();
}
